﻿<Common:BasePhoneAppPage x:Class="IkeCode.WP7.Wakeup.MainPage"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:Common="clr-namespace:IkeCode.WP7.Wakeup.Common"
                            xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
                            xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
                            xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
                            xmlns:views="clr-namespace:IkeCode.WP7.Wakeup.Views"
                            xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                            xmlns:ignore="http://www.ignore.com"
                            xmlns:bar="clr-namespace:BindableApplicationBar;assembly=BindableApplicationBar"
                            xmlns:Toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
                            mc:Ignorable="d ignore"
                            FontFamily="{StaticResource PhoneFontFamilyNormal}"
                            FontSize="{StaticResource PhoneFontSizeNormal}"
                            Foreground="{StaticResource PhoneForegroundBrush}"
                            SupportedOrientations="Portrait"
                            Orientation="Portrait"
                            d:DesignWidth="480"
                            d:DesignHeight="696"
                            shell:SystemTray.IsVisible="True"
                            DataContext="{Binding Main, Source={StaticResource Locator}}">
    <Grid x:Name="LayoutRoot" Background="Transparent" VerticalAlignment="Top">

        <controls:Pivot Title="{Binding Path=AppName, Source={StaticResource AppDictionary}}">

            <controls:PivotItem Header="{Binding Path=Alarms, Source={StaticResource AppDictionary}}">
                <!--<views:AlarmControl/>-->
                <Grid x:Name="LayoutRootAlarms">
                    <StackPanel>
                        <StackPanel>
                            <TextBlock Text="{Binding Path=Name, Source={StaticResource AppDictionary}}"/>
                            <Toolkit:PhoneTextBox LengthIndicatorVisible="True" MaxLength="20"/>
                        </StackPanel>
                        <StackPanel>
                            <TextBlock Text="{Binding Path=Hour, Source={StaticResource AppDictionary}}" />
                            <Toolkit:TimePicker />
                        </StackPanel>
                        <StackPanel>
                            <TextBlock Text="{Binding Path=Days, Source={StaticResource AppDictionary}}" />
                            <Button Content="{Binding CurrentDaysText, Mode=TwoWay}" Command="{Binding SelectDaysCommand}" />
                        </StackPanel>
                        <StackPanel>
                            <TextBlock Text="{Binding Path=Ringtone, Source={StaticResource AppDictionary}}" />
                            <Button Content="Current Ringtone" Command="{Binding SelectRingtoneCommand}" />
                        </StackPanel>
                    </StackPanel>
                </Grid>
            </controls:PivotItem>
            <controls:PivotItem Header="{Binding Path=Settings, Source={StaticResource AppDictionary}}">

            </controls:PivotItem>
            <controls:PivotItem Header="{Binding Path=About, Source={StaticResource AppDictionary}}">

            </controls:PivotItem>
        </controls:Pivot>
    </Grid>

    <bar:Bindable.ApplicationBar>
        <bar:BindableApplicationBar>
            <bar:BindableApplicationBarButton
            IconUri="/LocalResources/Images/appbar.add.png"
            Text="{Binding Path=Add, Source={StaticResource AppDictionary}}"
            Command="{Binding SelectDaysCommand}" />
            <!--<bar:BindableApplicationBar.MenuItems>
                <bar:BindableApplicationBarMenuItem
                Text="Menu Item 1"
                Command="{Binding TestCommand}" />
            </bar:BindableApplicationBar.MenuItems>-->
        </bar:BindableApplicationBar>
    </bar:Bindable.ApplicationBar>
</Common:BasePhoneAppPage>